﻿IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Get/*--EntryName--*/Data]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[Get/*--EntryName--*/Data]
GO

CREATE PROCEDURE [dbo].[Get/*--EntryName--*/Data]
	@Ids TBigIntSet READONLY
AS
BEGIN
	SET NOCOUNT ON
	
	SELECT
		DirectoryEntryId,
/*--SpecificColumns--*/
	FROM
		[/*--EntryName--*/]
	WHERE
		DirectoryEntryId IN (SELECT Value FROM @Ids)
END
GO